QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

msvc{
    QMAKE_CFLAGS += /utf-8
    QMAKE_CXXFLAGS += /utf-8
}

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    database.cpp \
    dbviewercommon.cpp \
    log.cpp \
    main.cpp \
    mainwindow.cpp \
    newconnectiondialog.cpp \
    tablemodel.cpp \
    tablewidget.cpp

HEADERS += \
    commondef.h \
    database.h \
    dbviewercommon.h \
    log.h \
    mainwindow.h \
    newconnectiondialog.h \
    tablemodel.h \
    tablewidget.h

FORMS += \
    mainwindow.ui \
    newconnectiondialog.ui \
    tablewidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


#程序版本
VERSION = 1.0.0.240226
#程序图标
RC_ICONS = favicon.ico
#公司名称
QMAKE_TARGET_COMPANY = "company"
#程序说明
QMAKE_TARGET_DESCRIPTION = "DBVIWER"
#版权信息
QMAKE_TARGET_COPYRIGHT = "Copyright(C) 2024"
#程序名称
QMAKE_TARGET_PRODUCT = "DBVIWER"
#程序语言 0x0800代表和系统当前语言一致
RC_LANG = 0x0800

DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\"

RESOURCES += \
    res.qrc
